import request from "@/utils/request";

export function updateUserDisable(data) {
    return request({
        url:'/admin/users/disable',
        method:'put',
        data:data
    })
}

export function updateUserRole(data) {
    return request({
        url:'/admin/users/role',
        method:'put',
        data:data
    })
}

export function listUsers(param) {
    return request({
        url:'/admin/users',
        method:'get',
        params:param
    })
}

export function listUserRoles() {
    return request({
        url:'/admin/users/role',
        method:'get'
    })
}
